
<div class="row RowSpace" style="margin-bottom:20px;">
  <div class="LableDiv" style="width:50px;"><Btn class="BtnSave" value="保存" ng-click="btnSave()"></Btn></div>
  <div class="LableDiv" style="width:60px;"><Btn value="放弃" ng-click="btnCancel()"></Btn></div>
  <div class="LableDiv" style="width:50px;"><Btn class="BtnAdd" value="新增" ng-click="btnAdd()"></Btn></div>
  <div class="LableDiv" style="width:60px;"><Btn class="BtnDelete" value="删除" ng-click="btnDelete()"></Btn></div>
  <div class="LableDiv" style="width:50px;">
    <BtnFind DisplayName="查找" WindowTitle="工艺路线" module="Module.Routing">
      <Column type="0" width="120px" displayname="编码" valuefield="Code"></Column>
      <Column type="textbox" width="120px" displayname="名称" valuefield="Name"></Column>
      <Column type="textbox" width="150px" displayname="料品" valuefield="ItemMaster.Name"></Column>
      <Column type="dropdownlist" DisplayName="分类" width="150px" ValueField='ItemCategory' Enum="ItemCategoryEnum"></Column>
    </BtnFind>
  </div>
  <div class="LableDiv" style="width:60px;"><Btn value="列表" ng-click="btnList()"></Btn></div>
  <PageButton module="Module.Routing"></PageButton>
</div>
<div class="row RowSpace">
  <div class="LableDiv"><Label IsEmpty="false">编码</Label></div>
  <div class="InputDiv"><TextBox value="Module.Routing.FocusedRecord.Code" isempty="false"></TextBox></div>
  <div class="LableDiv"><Label IsEmpty="false">名称</Label></div>
  <div class="InputDiv"><TextBox value="Module.Routing.FocusedRecord.Name"></TextBox></div>
  <div class="LableDiv"><Label>料品</Label></div>
  <div class="InputDiv">
    <Refer EntityName="ItemMaster" WindowTitle="料品" value="Module.Routing.FocusedRecord.ItemMaster" Enabled="{{Module.Routing.FocusedRecord.ItemCategory == null}}">
      <Column type="0" width="150px" DisplayName="编码" valuefield="Code"></Column>
      <Column type="textbox" width="150px" DisplayName="名称" valuefield="Name"></Column>
      <Column type="dropdownlist" DisplayName="分类" width="135px" ValueField='ItemCategory' Enum="ItemCategoryEnum"></Column>
      <Column DisplayName="规格" width="150px" ValueField="Specification"></Column>
    </Refer>
  </div>
  <div class="LableDiv"><Label>分类</Label></div>
  <div class="InputDiv"><DropDownList value="Module.Routing.FocusedRecord.ItemCategory" Enabled="{{Module.Routing.FocusedRecord.ItemMaster == null}}" enum="ItemCategoryEnum"></DropDownList></div>
</div>
<div class="row RowSpace">
  <div class="LableDiv"><Label>备注</Label></div>
  <div class="InputDiv" style="width:42%;height:60px;"><TextareaBox value="Module.Routing.FocusedRecord.Remark"></div>
  <div class="LableDiv"><Label>生效</Label></div>
  <div class="InputDiv"><CheckBox value="Module.Routing.FocusedRecord.IsEffective"></CheckBox></div>
</div>

<div class="row RowSpace LastRow" style="margin-top:20px;">
  <DataGrid module="Module.Operation" IsAutoLoad="false" addrow="addRow()" cellvaluechange="cellValueChange(columnName, newValue, oldValue)">
      <NumberBoxColumn IsEmpty="false" minvalue="0" round="{Precision: 0}" DisplayName="行号" width="50px" valuefield="Sequence"></NumberBoxColumn>     
      <TextBoxColumn IsEmpty="false" DisplayName="名称" width="150px" valuefield="Name"></TextBoxColumn>
      <ReferColumn EntityName="Work" IsEmpty="false" DisplayName="作业"  width="154px" WindowTitle="作业" ValueField="Work" Condition="{IsEffective: true}">
        <Column type="0" width="100px" DisplayName="编码" valuefield="Code"></Column>
        <Column type="textbox" width="110px" DisplayName="名称" valuefield="Name"></Column>
        <Column type="CheckBox" width="45px" DisplayName="计时" valuefield="IsTiming"></Column>
        <Column type="CheckBox" width="65px" DisplayName="质检点" valuefield="IsQCpoint"></Column>
        <Column type="CheckBox" width="65px" DisplayName="入库点" valuefield="IsStoragePoint"></Column>
        <Column type="TextBox" width="200px" DisplayName="备注" valuefield="Remark"></Column>
      </ReferColumn>
      <NumberBoxColumn minvalue="0" round="{Precision: 2, RoundType: 3, RoundValue: 5}" DisplayName="准备工时" width="80px" valuefield="ReadyWorkHours"></NumberBoxColumn>
      <NumberBoxColumn minvalue="0" round="{Precision: 2, RoundType: 3, RoundValue: 5}" DisplayName="加工工时" width="80px" valuefield="MachinWorkHours"></NumberBoxColumn>
      <CheckBoxColumn DisplayName="检查点" width="65px" ValueField="IsCheckPoint"></CheckBoxColumn>
      <CheckBoxColumn DisplayName="计时" width="90px" ValueField="IsTiming"></CheckBoxColumn>
      <CheckBoxColumn DisplayName="质检点" width="65px" ValueField="IsQCpoint"></CheckBoxColumn>
      <CheckBoxColumn DisplayName="入库点" width="65px" ValueField="IsStoragePoint"></CheckBoxColumn>
      <CheckBoxColumn DisplayName="统计点" width="65px" ValueField="IsCountPoint"></CheckBoxColumn>
      <CheckBoxColumn DisplayName="多次扫描" width="80px" ValueField="IsMultScan"></CheckBoxColumn>
      <CheckBoxColumn DisplayName="生效" width="65px" ValueField="IsEffective"></CheckBoxColumn>
  </DataGrid>
</div>